<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欣才学生档案管理系统</title>
<link rel="stylesheet" type="text/css" href="/static/login/css/style.css" />
<link rel="stylesheet" type="text/css" href="/static/login/css/body.css"/>
</head>
<body>
<div class="container">
	<section id="content">
		<form action="" id="admin_login" class="form form-horizontal"  method="post">
			<h1>后台登录</h1>
			<div>
				<input type="text" placeholder="用户名/学生名" required="" id="name" />
			</div>
			<div>
				<input type="password" placeholder="密码/身份证" required="" id="password" />
			</div>
            <div>
				<input type="submit" class="layui-btn layui-btn-normal" id="one" name="submit" >
			</div>
		</form><!-- form -->
		 <div class="button">
			<span class="help-block u-errormessage" id="js-server-helpinfo">&nbsp;</span>
		</div> <!-- button -->
	</section><!-- content -->
</div>
<!-- container -->
<br><br><br><br>
<div style="text-align:center;">
<p>More Templates <a href="http://www.thinksite.cn/" target="_blank" title="模板之家">欣才学院</a> - Collect from <a href="http://www.cssmoban.com/" title="" target="_blank"></a></p>
</div>
</body>
</html>
<script type="text/javascript" src="/static/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/static/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="/static/layer/layer.js"></script>
<script type="text/javascript" src="/static/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
<!--此乃百度统计代码，请自行删除-->
<script>
	$('#admin_login').submit(function(){
        var name = $('#name').val();
        var password = $('#password').val();
        var urls = "{:url('admin/score/ScoreDetails')}";
        $.ajax({
            type:'post',
            url:'{:url("admin/Login/login")}',
            data:{
                name:name,
                password:password,
            },
            dataType:'json',
            success:function(data){
                if (data.status == 1){
                    layer.msg(data.msg,{icon:1,time:1000},function () {
                        location.href = data.url;
                    })
                }else if (data.status == 3) {
                    layer_show('成绩详情',urls+'?id='+data.id,800,500)
                }else {
                    layer.msg(data.msg,{icon:2,time:1000});
				}
            }
		});
        return false;
	})
</script>